import { getPrivileges } from '@/api/common'

export default {
  data() {
    return {
      editBtnMapList: {}
    }
  },
  created() {
    if(this.getColumnsRoute) {
      getPrivileges({route:this.getColumnsRoute}).then(res => {
        if(res.code === 0) {
          this.editBtnMapList = Object.assign({}, res.data);
          if(this.customWidth==""){
            let arr = Object.keys(this.editBtnMapList);
            this.customWidth=(arr.length*80).toString();
          }
        }
      })
    }
  }
}

